<!--
 * @Author: 鱿鱼溪学院
 * @Date: 2025-02-05 21:11:38
 * @LastEditTime: 2025-05-11 18:57:19
 * @LastEditors: 鱿鱼溪学院
 * @Description: 
 * @FilePath: \yyx-web\src\App.vue
 * Copyright 鱿鱼溪学院 by edu v1.0
 * 天道酬勤
-->
<template>
  <div>
    <!-- <CountDown ref="childRef" /> -->
    <!-- <button @click="handleClick">调用子组件方法</button> -->
    <router-view></router-view>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import CountDown from './components/common/CountDown.vue'

// const childRef = ref(null) // Ref 名称需与模板中一致

// const handleClick = () => {
//   // 使用可选链操作符避免未挂载时报错
//   childRef.value?.startCountdown()
// }
</script>

<style scoped></style>
